﻿using Lonewolf.Entity;
using Lonewolf.IService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lonewolf.Service
{
    public partial class RoleMenuService:BaseService<RoleMenu>, IRoleMenuService
    {
        public RoleMenuService(EFDbContext dbContext):base(dbContext)
        {

        }
        public IQueryable<string> GetMenusByRoleId(IQueryable<string> queryable)
        {
            return QueryNoTracking().Where(a => queryable.Contains(a.RoleId)).Select(b => b.MenuId);
        }
    }
}
